﻿<Window x:Class="LogicCircuit.DialogMemory"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:lc="clr-namespace:LogicCircuit"
	xmlns:properties="clr-namespace:LogicCircuit.Properties"
	WindowStartupLocation="CenterOwner"
	Title="{x:Static properties:Resources.TitleMemory}"
	Style="{StaticResource DialogWindow}"
	MinWidth="480" MinHeight="240"
>
	<lc:AutoGrid ColumnWidths="*">
		<StackPanel Orientation="Horizontal" Margin="3">
			<StackPanel.Resources>
				<Style TargetType="TextBlock">
					<Setter Property="VerticalAlignment" Value="Center"/>
				</Style>
			</StackPanel.Resources>

			<Label Content="{x:Static properties:Resources.TitleAddressBitWidth}"/>
			<TextBlock Text="{Binding Path=FunctionMemory.AddressBitWidth}"/>
			<Label Content="{x:Static properties:Resources.TitleDataBitWidth}"/>
			<TextBlock Text="{Binding Path=FunctionMemory.DataBitWidth}"/>
		</StackPanel>

		<GroupBox Header="{x:Static properties:Resources.TitleData}" Margin="3">
			<lc:ControlMemoryEditor FunctionMemory="{Binding Path=FunctionMemory}" IsReadOnly="True"/>
		</GroupBox>

		<Button Content="{x:Static properties:Resources.TitleOK}" IsDefault="True" IsCancel="True" HorizontalAlignment="Right"/>
	</lc:AutoGrid>
</Window>
